home *** CD-ROM | disk | FTP | other *** search
- <refentry id="libgimp-gimpedit" revision="19 Jan 2001">
- <refmeta>
- <refentrytitle>gimpedit</refentrytitle>
- <manvolnum>3</manvolnum>
- <refmiscinfo>LIBGIMP Library</refmiscinfo>
- </refmeta>
-
- <refnamediv>
- <refname>gimpedit</refname><refpurpose></refpurpose>
- </refnamediv>
-
- <refsynopsisdiv><title>Synopsis</title>
- <synopsis>
-
-
-
- <link linkend="gboolean">gboolean</link> <link linkend="gimp-edit-cut">gimp_edit_cut</link> (<link linkend="gint32">gint32</link> drawable_ID);
- <link linkend="gboolean">gboolean</link> <link linkend="gimp-edit-copy">gimp_edit_copy</link> (<link linkend="gint32">gint32</link> drawable_ID);
- <link linkend="gint32">gint32</link> <link linkend="gimp-edit-paste">gimp_edit_paste</link> (<link linkend="gint32">gint32</link> drawable_ID,
- <link linkend="gboolean">gboolean</link> paste_into);
- <link linkend="gboolean">gboolean</link> <link linkend="gimp-edit-clear">gimp_edit_clear</link> (<link linkend="gint32">gint32</link> drawable_ID);
- <link linkend="gboolean">gboolean</link> <link linkend="gimp-edit-fill">gimp_edit_fill</link> (<link linkend="gint32">gint32</link> drawable_ID,
- <link linkend="GimpFillType">GimpFillType</link> fill_type);
- <link linkend="gboolean">gboolean</link> <link linkend="gimp-edit-stroke">gimp_edit_stroke</link> (<link linkend="gint32">gint32</link> drawable_ID);
- </synopsis>
- </refsynopsisdiv>
-
-
-
-
-
- <refsect1>
- <title>Description</title>
- <para>
-
- </para>
- </refsect1>
-
- <refsect1>
- <title>Details</title>
- <refsect2>
- <title><anchor id="gimp-edit-cut">gimp_edit_cut ()</title>
- <programlisting><link linkend="gboolean">gboolean</link> gimp_edit_cut (<link linkend="gint32">gint32</link> drawable_ID);</programlisting>
- <para>
- Cut from the specified drawable.
- </para>
- <para>
- If there is a selection in the image, then the area specified by the
- selection is cut from the specified drawable and placed in an
- internal GIMP edit buffer. It can subsequently be retrieved using
- the 'gimp-edit-paste' command. If there is no selection, then the
- specified drawable will be removed and its contents stored in the
- internal GIMP edit buffer. The drawable MUST belong to the specified
- image, or an error is returned.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>drawable_ID</parameter> :</entry>
- <entry> The drawable to cut from.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> TRUE on success.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-edit-copy">gimp_edit_copy ()</title>
- <programlisting><link linkend="gboolean">gboolean</link> gimp_edit_copy (<link linkend="gint32">gint32</link> drawable_ID);</programlisting>
- <para>
- Copy from the specified drawable.
- </para>
- <para>
- If there is a selection in the image, then the area specified by the
- selection is copied from the specified drawable and placed in an
- internal GIMP edit buffer. It can subsequently be retrieved using
- the 'gimp-edit-paste' command. If there is no selection, then the
- specified drawable's contents will be stored in the internal GIMP
- edit buffer. The drawable MUST belong to the specified image, or an
- error is returned.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>drawable_ID</parameter> :</entry>
- <entry> The drawable to copy from.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> TRUE on success.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-edit-paste">gimp_edit_paste ()</title>
- <programlisting><link linkend="gint32">gint32</link> gimp_edit_paste (<link linkend="gint32">gint32</link> drawable_ID,
- <link linkend="gboolean">gboolean</link> paste_into);</programlisting>
- <para>
- Paste buffer to the specified drawable.
- </para>
- <para>
- This procedure pastes a copy of the internal GIMP edit buffer to the
- specified drawable. The GIMP edit buffer will be empty unless a call
- was previously made to either 'gimp-edit-cut' or 'gimp-edit-copy'.
- The \"paste_into\" option specifies whether to clear the current
- image selection, or to paste the buffer \"behind\" the selection.
- This allows the selection to act as a mask for the pasted buffer.
- Anywhere that the selection mask is non-zero, the pasted buffer will
- show through. The pasted buffer will be a new layer in the image
- which is designated as the image floating selection. If the image
- has a floating selection at the time of pasting, the old floating
- selection will be anchored to it's drawable before the new floating
- selection is added. This procedure returns the new floating layer.
- The resulting floating selection will already be attached to the
- specified drawable, and a subsequent call to floating_sel_attach is
- not needed.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>drawable_ID</parameter> :</entry>
- <entry> The drawable to paste to.
- </entry></row>
- <row><entry align="right"><parameter>paste_into</parameter> :</entry>
- <entry> Clear selection, or paste behind it?
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> The new floating selection.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-edit-clear">gimp_edit_clear ()</title>
- <programlisting><link linkend="gboolean">gboolean</link> gimp_edit_clear (<link linkend="gint32">gint32</link> drawable_ID);</programlisting>
- <para>
- Clear selected area of drawable.
- </para>
- <para>
- This procedure clears the specified drawable. If the drawable has an
- alpha channel, the cleared pixels will become transparent. If the
- drawable does not have an alpha channel, cleared pixels will be set
- to the background color. This procedure only affects regions within
- a selection if there is a selection active.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>drawable_ID</parameter> :</entry>
- <entry> The drawable to clear from.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> TRUE on success.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-edit-fill">gimp_edit_fill ()</title>
- <programlisting><link linkend="gboolean">gboolean</link> gimp_edit_fill (<link linkend="gint32">gint32</link> drawable_ID,
- <link linkend="GimpFillType">GimpFillType</link> fill_type);</programlisting>
- <para>
- Fill selected area of drawable.
- </para>
- <para>
- This procedure fills the specified drawable with the fill mode. If
- the fill mode is foreground, the current foreground color is used.
- If the fill mode is background, the current background color is
- used. Other fill modes should not be used. This procedure only
- affects regions within a selection if there is a selection active.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>drawable_ID</parameter> :</entry>
- <entry> The drawable to fill to.
- </entry></row>
- <row><entry align="right"><parameter>fill_type</parameter> :</entry>
- <entry> The type of fill.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> TRUE on success.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-edit-stroke">gimp_edit_stroke ()</title>
- <programlisting><link linkend="gboolean">gboolean</link> gimp_edit_stroke (<link linkend="gint32">gint32</link> drawable_ID);</programlisting>
- <para>
- Stroke the current selection
- </para>
- <para>
- This procedure strokes the current selection, painting along the
- selection boundary with the active brush and foreground color. The
- paint is applied to the specified drawable regardless of the active
- selection.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>drawable_ID</parameter> :</entry>
- <entry> The drawable to stroke to.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> TRUE on success.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
-
- </refsect1>
-
-
-
-
- </refentry>
-